# Sets the minimum version of CMake required to build your native library.
# This ensures that a certain set of CMake features is available to
# your build.

cmake_minimum_required(VERSION 3.4.1)

# Specifies a library name, specifies whether the library is STATIC or
# SHARED, and provides relative paths to the source code. You can
# define multiple libraries by adding multiple add.library() commands,
# and CMake builds them for you. When you build your app, Gradle
# automatically packages shared libraries with your APK.

add_library( AES
             SHARED
             src/main/cpp/AES_Jave.c )

add_library(track_fun_AES
            SHARED
            src/main/cpp/track_fun_AES.c )

include_directories(src/main/cpp/)

find_library( # Sets the name of the path variable.
              log-lib

              # Specifies the name of the NDK library that
              # you want CMake to locate.
              log )


# Links your native library against one or more other native libraries.
target_link_libraries( # Specifies the target library.
                       AES
                       track_fun_AES

                       # Links the log library to the target library.
                       ${log-lib} )